﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SectionBalanceReport.aspx.cs" Inherits="Pages_SectionBalanceReport" %>

<%@ PreviousPageType VirtualPath="SectionBalance.aspx"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>HIPOCRATE - Raport de venituri si cheltuieli rulat pe sectiile clinice</title>
    <link rel="stylesheet" type="text/css" href="../Styles/print.css" />
    <style type="text/css" media="print">
		div.printPage { 
		}
		div.disabled { 
			writing-mode: tb-rl;
			height: 80%;
			margin: 10% 0%;
		}
		div.disabled table {
			margin-right: 80pt;
			filter: progid:DXImageTransform.Microsoft.BasicImage(Rotation=1);
		}
	</style>
</head>
<body bgcolor="#ffffff">
    <form id="form1" runat="server">
    <div class="printPage">
		<asp:Literal ID="output" runat="server" />
		<table>
			<tr>
				<td>

					<table id="reportHeader" border="0" cellspacing="0" cellpadding="0" width="100%" ID="Table2">
						<tr>
							<td align="left" valign="top" colspan="4">
								<asp:PlaceHolder ID="ForCAS" runat="server" Visible="false"> <!-- visible = if (Request.ServerVariables["PATH_TRANSLATED"].toUpperCase().indexOf("\\CAS\\") > -1) -->
									<span class="banner">
									<span class="H3"><%=GetHospitalName()%></span>
								</asp:PlaceHolder>
								<asp:PlaceHolder ID="notForCAS" runat="server">
									<table width="100%">
										<tr>
											<td align="left">
												<span class="banner">
												<span class="H3">
													<%=GetHospitalName()%></span>
												<br/>
												</span>
											</td>
											<td align="right">
												<%--#include file="antetRsc.inc" --%>
												<span class="banner">
													<!--a href="javascript:history.back();"-->
													sistem informatic <span class="H3">HIPOCRATE</span><br/>
													&copy; RSC <br/>
													E-mail: office@rsc.ro <br/>
													<!--/a-->
												</span>
											</td>
										</tr>
									</table>
								</asp:PlaceHolder>
							</td>
						</tr>
						<tr>
							<td class="H2" align="center" nowrap colspan="4">
								<B>Raport de venituri si cheltuieli rulat pe <asp:Literal ID="target" runat="server" /> </B>
							</td>
						</tr>
						<tr>
							<td class="H3" align="center" colspan="4">
								de la <asp:Literal ID="start" runat="server" /> pana la <asp:Literal ID="end" runat="server" />
							</td>
						</tr>
						<tr>
							<td colspan="4">&nbsp;</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>	
					<asp:Repeater ID="allData" runat="server">
						<HeaderTemplate>
	<table border="0" cellspacing="0" cellpadding="3" width="1370px" ID="Table10" class="tableRep">
	<thead>
	<tr>
		<td rowspan="4"  class="tdnShortTopLeft">&nbsp;Nr.<br/><br/>Crt.</td>
		<td rowspan="4"  class="tdnShortTopCenterCell">&nbsp;Sectia</td>
		<td colspan="10" class="tdnShortTopCenterCell">&nbsp;VENITURI</td>
		<td colspan="11"  class="tdnShortTopCenterCell">&nbsp;CHELTUIELI</td>
		<td rowspan="3"  class="tdnShortRightCell" >&nbsp;Valoare<br/>finala</td>
	</tr>
	<tr>
		<td class="tdnShortCenterCell" colspan="2" >&nbsp;FOCG ICM</td>
		<td class="tdnShortCenterCell" colspan="2" >&nbsp;FOCG Cronici</td>
		<td class="tdnShortCenterCell" colspan="2" >&nbsp;Spitalizare de Zi</td>
		<td class="tdnShortCenterCell" colspan="2" >&nbsp;Chitanta</td>
		<td class="tdnShortCenterCellTot" colspan="2">&nbsp;Total</td>

		<td class="tdnShortCenterCell" >&nbsp;Cheltuieli<br/>Directe<br/>Salarii</td>
		<td class="tdnShortCenterCell" >&nbsp;Cheltuieli<br/>Indirecte</td>
		<td class="tdnShortCenterCell" >&nbsp;Hrana</td>
		<td class="tdnShortCenterCell" >&nbsp;Medicamente</td>
		<td class="tdnShortCenterCell" >&nbsp;Materiale<br/>Sanitare</td>
		<td class="tdnRedShort" >&nbsp;Medicamente<br/>PNS</td>
		<td class="tdnRedShort" >&nbsp;Materiale <br/>Sanitare<br/>PNS</td>
		<td class="tdnShortCenterCell" >&nbsp;Materiale<br/>Consum</td>
		<td class="tdnShortCenterCell" >&nbsp;Laborator</td>
		<td class="tdnShortCenterCell" >&nbsp;Alte<br/>investigatii</td>
		<td class="tdnShortCenterCellTotCH" >&nbsp;&nbsp;Total&nbsp;&nbsp;</td>
	</tr>
	<tr>
		<td class="tdnShortCenterCellFlip" >&nbsp;Nr. Pac</td>
		<td class="tdnShortCenterCellFlip">&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Nr. Pac</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Nr. Pac</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Nr. Pac</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlipTotCHBold" >&nbsp;Nr. Pac</td>
		<td class="tdnShortCenterCellFlipTotCHBoldRIGHT" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip">&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnRedShortFlip" >&nbsp;Valoare</td>
		<td class="tdnRedShortFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlip" >&nbsp;Valoare</td>
		<td class="tdnShortCenterCellFlipTotCH" >&nbsp;Valoare</td>
	</tr>
	<tr>
		<td class="tdnShortCenterCell">1</td>
		<td class="tdnShortCenterCell">2</td>
		<td class="tdnShortCenterCell">3</td>
		<td class="tdnShortCenterCell">4</td>
		<td class="tdnShortCenterCell">5</td>
		<td class="tdnShortCenterCell">6</td>
		<td class="tdnShortCenterCell">7</td>
		<td class="tdnShortCenterCell">8</td>
		<td class="tdnShortCenterCellBoldLeft">9</td>
		<td class="tdnShortCenterCellBold">10</td>
		<td class="tdnShortCenterCell">11</td>
		<td class="tdnShortCenterCell">12</td>
		<td class="tdnShortCenterCell">13</td>
		<td class="tdnShortCenterCell">14</td>
		<td class="tdnShortCenterCell">15</td>
		<td class="tdnRedShort">16</td>
		<td class="tdnRedShort">17</td>
		<td class="tdnShortCenterCell">18</td>
		<td class="tdnShortCenterCell">19</td>
		<td class="tdnShortCenterCell">20</td>
		<td class="tdnShortCenterCellTotCH">21 = 11+<br>12+15<br>+14+15+18<br>+19+20</td>
		<td class="tdnShortRightCell">&nbsp;10&nbsp;-&nbsp;21&nbsp;</td>
	</tr>
	</thead>
						</HeaderTemplate>
						<ItemTemplate>
		<tr>
			<td class="tdnShortLeft">&nbsp;<%# Eval("NrCrt") %></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("Name") %></td>

			<td class="tdnShortCenterCell">&nbsp;<%# Eval("nrPIcmFOCGValue")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("icmFOCGValue", "{0:n}")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("nrPChronics")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("chronicsValue", "{0:n}")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("nrPDaySpit")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("dayValueSpit", "{0:n}")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("nrPReceVal")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("receiptValue", "{0:n}")%></td>

			<td class="tdnShortCenterCellBoldLeft">&nbsp;<%# Eval("nrPTotal")%></td>
			<td class="tdnShortCenterCellBold">&nbsp;<%# Eval("nrPValue", "{0:n}")%></td>
			<td class="tdnShortCenterCell"><%# Eval("chSalaries", "{0:n}")%></td>
			<td class="tdnShortCenterCell"><%# Eval("chIndirect", "{0:n}")%></td>
			<td class="tdnShortCenterCell"><%# Eval("foodExpenses", "{0:n}")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("drugsValue", "{0:n}")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("materialsValue", "{0:n}")%></td>
			<td class="tdnRedShort">&nbsp;<%# Eval("drugsPNSValue", "{0:n}")%></td>
			<td class="tdnRedShort">&nbsp;<%# Eval("materialsPNSValue", "{0:n}")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("chMaterials", "{0:n}")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("laboratoryValue", "{0:n}")%></td>
			<td class="tdnShortCenterCell">&nbsp;<%# Eval("othersValue", "{0:n}")%></td>
			<td class="tdnShortCenterCellTotCH"><%# Eval("chTotal", "{0:n}")%></td>
			<td class="tdnShortRightCell" width="125px"><%# Eval("rezTotal", "{0:n}")%></td>
		</tr>
						</ItemTemplate>
					</asp:Repeater>
				</td>
			</tr>
		</table>
    </div>
    </form>
</body>
</html>
